翻訳と辞書
Words near each other
・ Final Fantasy XIII-2
・ Final Fantasy XIV
・ Final Fantasy XV
・ Final Fight
・ Final Fight (series)
・ Final Fight 2
・ Final Fight 3
・ Final Fight Championship
・ Final Fight Revenge
・ Finaghy railway station
・ Finagle's law
・ Final
・ Final (band)
・ Final (competition)
・ Final (film)
Final (Java)
・ Final 24
・ Final accounts
・ Final Analysis
・ Final Appointment (1954 film)
・ Final approach
・ Final Approach (1991 film)
・ Final Approach (2007 film)
・ Final approach (aeronautics)
・ Final Approach (visual novel)
・ Final Approach (Wings)
・ Final Articles Revision Convention
・ Final Articles Revision Convention, 1946
・ Final Articles Revision Convention, 1961
・ Final ASP


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Final (Java) : ウィキペディア英語版
Final (Java)

In the Java programming language, the final keyword is used in several different contexts to define an entity which may only be assigned once.
Once a final variable has been assigned, it always contains the same value. If a final variable holds a reference to an object, then the state of the object may be changed by operations on the object, but the variable will always refer to the same object. This applies also to arrays, because arrays are objects; if a final variable holds a reference to an array, then the components of the array may be changed by operations on the array, but the variable will always refer to the same array.〔Java Language Specification #4.12.4〕
==Final classes==

A final class cannot be subclassed. Doing this can confer security and efficiency benefits, so many of the Java standard library classes are final, such as and . All methods in a final class are implicitly final.
Example:

public final class MyFinalClass
public class ThisIsWrong extends MyFinalClass // forbidden

Restricted subclasses are often referred to as "soft final" classes.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Final (Java)」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.